package cn.iocoder.yudao.module.wms.dal.mysql.bom;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.wms.dal.dataobject.bom.BomsDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * BOM子 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface BomsMapper extends BaseMapperX<BomsDO> {

    default List<BomsDO> selectListByOrderId(Long orderId) {
        return selectList(BomsDO::getOrderId, orderId);
    }

    default int deleteByOrderId(Long orderId) {
        return delete(BomsDO::getOrderId, orderId);
    }

}
